/*
 * XML Type:  PaymentResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PaymentResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PaymentResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PaymentResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractPaymentResponseImpl implements net.ofx.types.x2003.x04.PaymentResponse
{
    
    public PaymentResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PAYEELSTID$0 = 
        new javax.xml.namespace.QName("", "PAYEELSTID");
    private static final javax.xml.namespace.QName CURDEF$2 = 
        new javax.xml.namespace.QName("", "CURDEF");
    private static final javax.xml.namespace.QName PMTINFO$4 = 
        new javax.xml.namespace.QName("", "PMTINFO");
    private static final javax.xml.namespace.QName EXTDPAYEE$6 = 
        new javax.xml.namespace.QName("", "EXTDPAYEE");
    private static final javax.xml.namespace.QName CHECKNUM$8 = 
        new javax.xml.namespace.QName("", "CHECKNUM");
    private static final javax.xml.namespace.QName PMTPRCSTS$10 = 
        new javax.xml.namespace.QName("", "PMTPRCSTS");
    private static final javax.xml.namespace.QName RECSRVRTID$12 = 
        new javax.xml.namespace.QName("", "RECSRVRTID");
    
    
    /**
     * Gets the "PAYEELSTID" element
     */
    public java.lang.String getPAYEELSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEELSTID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PAYEELSTID" element
     */
    public net.ofx.types.x2003.x04.PayeeIdType xgetPAYEELSTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEELSTID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "PAYEELSTID" element
     */
    public void setPAYEELSTID(java.lang.String payeelstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYEELSTID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYEELSTID$0);
            }
            target.setStringValue(payeelstid);
        }
    }
    
    /**
     * Sets (as xml) the "PAYEELSTID" element
     */
    public void xsetPAYEELSTID(net.ofx.types.x2003.x04.PayeeIdType payeelstid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PayeeIdType target = null;
            target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().find_element_user(PAYEELSTID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PayeeIdType)get_store().add_element_user(PAYEELSTID$0);
            }
            target.set(payeelstid);
        }
    }
    
    /**
     * Gets the "CURDEF" element
     */
    public net.ofx.types.x2003.x04.CurrencyEnum.Enum getCURDEF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURDEF$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.CurrencyEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CURDEF" element
     */
    public net.ofx.types.x2003.x04.CurrencyEnum xgetCURDEF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CurrencyEnum target = null;
            target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().find_element_user(CURDEF$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CURDEF" element
     */
    public void setCURDEF(net.ofx.types.x2003.x04.CurrencyEnum.Enum curdef)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURDEF$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CURDEF$2);
            }
            target.setEnumValue(curdef);
        }
    }
    
    /**
     * Sets (as xml) the "CURDEF" element
     */
    public void xsetCURDEF(net.ofx.types.x2003.x04.CurrencyEnum curdef)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CurrencyEnum target = null;
            target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().find_element_user(CURDEF$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CurrencyEnum)get_store().add_element_user(CURDEF$2);
            }
            target.set(curdef);
        }
    }
    
    /**
     * Gets the "PMTINFO" element
     */
    public net.ofx.types.x2003.x04.PaymentInfo getPMTINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentInfo target = null;
            target = (net.ofx.types.x2003.x04.PaymentInfo)get_store().find_element_user(PMTINFO$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "PMTINFO" element
     */
    public void setPMTINFO(net.ofx.types.x2003.x04.PaymentInfo pmtinfo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentInfo target = null;
            target = (net.ofx.types.x2003.x04.PaymentInfo)get_store().find_element_user(PMTINFO$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PaymentInfo)get_store().add_element_user(PMTINFO$4);
            }
            target.set(pmtinfo);
        }
    }
    
    /**
     * Appends and returns a new empty "PMTINFO" element
     */
    public net.ofx.types.x2003.x04.PaymentInfo addNewPMTINFO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentInfo target = null;
            target = (net.ofx.types.x2003.x04.PaymentInfo)get_store().add_element_user(PMTINFO$4);
            return target;
        }
    }
    
    /**
     * Gets the "EXTDPAYEE" element
     */
    public net.ofx.types.x2003.x04.ExtendedPayee getEXTDPAYEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPayee target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPayee)get_store().find_element_user(EXTDPAYEE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "EXTDPAYEE" element
     */
    public boolean isSetEXTDPAYEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXTDPAYEE$6) != 0;
        }
    }
    
    /**
     * Sets the "EXTDPAYEE" element
     */
    public void setEXTDPAYEE(net.ofx.types.x2003.x04.ExtendedPayee extdpayee)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPayee target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPayee)get_store().find_element_user(EXTDPAYEE$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ExtendedPayee)get_store().add_element_user(EXTDPAYEE$6);
            }
            target.set(extdpayee);
        }
    }
    
    /**
     * Appends and returns a new empty "EXTDPAYEE" element
     */
    public net.ofx.types.x2003.x04.ExtendedPayee addNewEXTDPAYEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPayee target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPayee)get_store().add_element_user(EXTDPAYEE$6);
            return target;
        }
    }
    
    /**
     * Unsets the "EXTDPAYEE" element
     */
    public void unsetEXTDPAYEE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXTDPAYEE$6, 0);
        }
    }
    
    /**
     * Gets the "CHECKNUM" element
     */
    public java.lang.String getCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKNUM$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "CHECKNUM" element
     */
    public net.ofx.types.x2003.x04.CheckNumberType xgetCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHECKNUM$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "CHECKNUM" element
     */
    public boolean isSetCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHECKNUM$8) != 0;
        }
    }
    
    /**
     * Sets the "CHECKNUM" element
     */
    public void setCHECKNUM(java.lang.String checknum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKNUM$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CHECKNUM$8);
            }
            target.setStringValue(checknum);
        }
    }
    
    /**
     * Sets (as xml) the "CHECKNUM" element
     */
    public void xsetCHECKNUM(net.ofx.types.x2003.x04.CheckNumberType checknum)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckNumberType target = null;
            target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().find_element_user(CHECKNUM$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckNumberType)get_store().add_element_user(CHECKNUM$8);
            }
            target.set(checknum);
        }
    }
    
    /**
     * Unsets the "CHECKNUM" element
     */
    public void unsetCHECKNUM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHECKNUM$8, 0);
        }
    }
    
    /**
     * Gets the "PMTPRCSTS" element
     */
    public net.ofx.types.x2003.x04.PaymentProcessingStatus getPMTPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.PaymentProcessingStatus)get_store().find_element_user(PMTPRCSTS$10, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "PMTPRCSTS" element
     */
    public void setPMTPRCSTS(net.ofx.types.x2003.x04.PaymentProcessingStatus pmtprcsts)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.PaymentProcessingStatus)get_store().find_element_user(PMTPRCSTS$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PaymentProcessingStatus)get_store().add_element_user(PMTPRCSTS$10);
            }
            target.set(pmtprcsts);
        }
    }
    
    /**
     * Appends and returns a new empty "PMTPRCSTS" element
     */
    public net.ofx.types.x2003.x04.PaymentProcessingStatus addNewPMTPRCSTS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PaymentProcessingStatus target = null;
            target = (net.ofx.types.x2003.x04.PaymentProcessingStatus)get_store().add_element_user(PMTPRCSTS$10);
            return target;
        }
    }
    
    /**
     * Gets the "RECSRVRTID" element
     */
    public java.lang.String getRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RECSRVRTID$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "RECSRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(RECSRVRTID$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "RECSRVRTID" element
     */
    public boolean isSetRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECSRVRTID$12) != 0;
        }
    }
    
    /**
     * Sets the "RECSRVRTID" element
     */
    public void setRECSRVRTID(java.lang.String recsrvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RECSRVRTID$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RECSRVRTID$12);
            }
            target.setStringValue(recsrvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "RECSRVRTID" element
     */
    public void xsetRECSRVRTID(net.ofx.types.x2003.x04.ServerIdType recsrvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(RECSRVRTID$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(RECSRVRTID$12);
            }
            target.set(recsrvrtid);
        }
    }
    
    /**
     * Unsets the "RECSRVRTID" element
     */
    public void unsetRECSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECSRVRTID$12, 0);
        }
    }
}
